<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('mall/storegoods/flexigrid') ?>',
                    colModel: [
                        {display: '<?= translate('AREANAME') ?>', name: 'area_host', width: 100},
                        {display: '<?= translate('MALL_MALLCLASSIFITOON_SHOPID') ?>', name: 'id', width: 100, iskey: true},
                        {display: '<?= translate('MALL_STOREGOODS_ITEMTYPEID') ?>', name: 'itemtypeid', width: 150},
                        {display: '<?= translate('MALL_STOREGOODS_NAME') ?>', name: 'name', width: 130},
                        {display: '<?= translate('MALL_STOREGOODS_PROFFESSIONID') ?>', name: 'proffessionid', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_PRISE') ?>', name: 'prise', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_HOTPRISE') ?>', name: 'hotprise', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_MOUNT') ?>', name: 'mount', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_GLOBALMOUNT') ?>', name: 'globalmount', width: 80},
                        {display: '<?= translate('MALL_STOREGOODS_BUYLIMIT') ?>', name: 'buylimit', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_STARTTIME') ?>', name: 'starttime', width: 130},
                        {display: '<?= translate('MALL_STOREGOODS_DEADTIME') ?>', name: 'deadtime', width: 130},                        
                        {display: '<?= translate('MALL_STOREGOODS_HOTLIMIT') ?>', name: 'hotlimit', width: 50},
                        {display: '<?= translate('MALL_STOREGOODS_ISREDUCE') ?>', name: 'isreduce', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_ISDOWN') ?>', name: 'isdown', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_SCOREPRISE') ?>', name: 'scoreprise', width: 100},
                        {display: '<?= translate('MALL_STOREGOODS_ICON') ?>', name: 'icon', width: 180},
                        {display: '<?= translate('MALL_STOREGOODS_CORNERICON') ?>', name: 'cornericon', width: 100},
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp, toggle: false}
                    ],
                    buttons: [
                        {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: false,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("mall/storegoods/add") ?>',
                    edit_url: '<?= site_url("mall/storegoods/edit/") ?>',
                    del_url: '<?= site_url("mall/storegoods/del/") ?>',
                });
            });
        </script>
    </body>
</html>